6 int pos
[10], m
[10], C
, best
, S
;
8 void backtrack(vector
<int> &n
){
9 for (int i
=0, sum
= 0; i
<S
; ++i
){
15 for (int i
=0; i
<S
; ++i
){
17 for (int j
=pos
[i
]-n
[i
]; j
<= pos
[i
]+n
[i
]; ++j
){
23 best
>?= __builtin_popcount(mask
);
25 for (int i
=0; i
<S
; ++i
){
40 for (int i
=0; i
<S
; ++i
){
44 for (int i
=0; i
<S
; ++i
){